package com.asura.ecm.service.impl;

import com.asura.ecm.bean.OrderInfo;
import com.asura.ecm.service.UserService;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

public class UserServiceImpl2 implements UserService {

    /**
     * 获取用户订单数据
     *
     * @param userId
     * @return
     */
    @Override
    public List<OrderInfo> getUserOrderList(String userId) {
        OrderInfo order1 = new OrderInfo(1L, "酸奶", new Date());
        OrderInfo order2 = new OrderInfo(2L, "便当", new Date());
        return Arrays.asList(order1, order2);
    }
}
